package com.example.his.api.db.dao;

import com.example.his.api.db.pojo.DeptEntity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public interface DeptDao {

  public ArrayList < HashMap > searchAllDept();

  // 查询分页相关
  public ArrayList < HashMap > searchByPage( Map param );

  public Long searchCount( Map param );

  // 新增
  public int insert( DeptEntity param );

  // 修改
  public HashMap searchById( int id );

  public int update( DeptEntity param );

  // 删除
  public boolean searchCanDelete( Integer[] ids );

  public int deleteByIds( Integer[] ids );

}




